import App from './App'
import routers from './utils/router'
import * as api from './request/api.js'
import config from './utils/config.js'
import uView from "uview-ui"

import uCharts from '@/utils/u-charts.js'; //引入uCharts
import navbar from '@/components/nav-bar/custom-navbar.vue'
import navbarHome from '@/components/nav-bar/custom-home.vue'
import loading from '@/components/loading/loading.vue'
import tabar from "@/components/tabar/tabar.vue"
import tabar_home from "@/components/tabar/tabar_home.vue"
import goods_car from '@/components/movable/goods_car.vue'		//购物车
import speedup from '@/components/movable/speedup.vue'		//加速
import collect from '@/components/movable/collect.vue'		//收藏
import email from '@/components/movable/email.vue'		//邮箱
import share from '@/utils/share.js'
Vue.component('navbar', navbar);
Vue.component('navbarHome', navbarHome);
Vue.component('loading', loading);
Vue.component('tab-bar',tabar);
Vue.component('tabar-home',tabar_home);
Vue.component('goods-car',goods_car)	
Vue.component('goods-speedup',speedup)	
Vue.component('goods-collect',collect)	
Vue.component('goods-email',email)	
Vue.mixin(share)


// https://blog.csdn.net/qq_38906291/article/details/103261696
// https://blog.csdn.net/u012732909/article/details/108776118
// https://www.jb51.net/javascript/285319svn.htm

// #ifndef VUE3
import Vue from 'vue'

Vue.config.productionTip = false
Vue.prototype.$http = api;

Vue.prototype.$routers = routers;
Vue.prototype.$config = config;
Vue.prototype.$loading = loading;
Vue.use(uView);
App.mpType = 'app'
const app = new Vue({
  ...App,
  // ...api,
})
app.$mount()
// #endif

// #ifdef VUE3



import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)

  
  return {
    app
  }
}
// #endif


//uniapp微信小程序scroll-view头部固定在页面上，不会随着页面滚动而移动
//https://blog.csdn.net/weixin_38905666/article/details/129686582